package com.yonyougov.cruxtestcase.testcase.baiscdata.enumvalue.multiversion;


import com.yonyougov.cruxtestcase.basecase.BaseCase;
import com.yonyougov.cruxtestcase.dto.BaseResponseDto;
import com.yonyougov.cruxtestcase.dto.BaseTestReqDto;
import com.yonyougov.cruxtestcase.testcase.baiscdata.enumvalue.multiversion.dto.EnumValueDto;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RestController
@RequestMapping("/api/enumvalue/multversion/nosensitivequery")
@Valid
public class EnumValueNoSensitiveQueryCaseController implements BaseCase {
    private final EnumValueCaseService enumValueCaseService;

    public EnumValueNoSensitiveQueryCaseController(EnumValueCaseService enumValueCaseService) {
        this.enumValueCaseService = enumValueCaseService;
    }

    @Override
    public String getName() {
        return "码值多版本不敏感查询";
    }

    @Override
    public String getRemark() {
        return "默认查询返回不敏感的数据";
    }

    @Override
    public BaseResponseDto testcase(BaseTestReqDto baseDto) {
        return null;
    }

    @PostMapping("/testcase")
    public BaseResponseDto testcase(@RequestBody EnumValueDto baseDto) {
            return enumValueCaseService.noSensitiveTestCase(baseDto);
    }


}
